package com.xzy.mybatis.cipher.entity.db2;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xzy.mybatis.cipher.annotation.CryptoColumn;
import com.xzy.mybatis.cipher.annotation.CryptoTable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author xzy.xiao
 * @since 2025/1/13  17:16
 */
@Data
@Accessors(chain = true)
@TableName("teacher")
@CryptoTable(tableName = "teacher", datasourceName = "db2")
public class Teacher {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String name;

    @CryptoColumn(columnName = "id_card")
    private String idCard;

    @CryptoColumn(columnName = "mobile")
    private String mobile;

    @CryptoColumn(columnName = "email")
    private String email;

    private String remark;
}
